home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
pdrd2.zip
/
RD.ZIP
/
RD_DEMO7.PRG
< prev
next >
Wrap
Text File
|
1993-01-11
|
1KB
|
44 lines
/*
RD_DEMO7.PRG
This demonstrates the use of:
ADr_expattr()
*/
#include "read.ch"
//---------
func main()
local getlist[0]
local cShort := "Short string"
local cLong := "This is a very long string. Press 'Tab' to expand it into a memoedit."
local nT := 10, nL := 10, nB := 13, nR := 50
local cColor := setcolor( if( iscolor(), "W+/BG, GR+/R,,, N/R", nil ) )
local aScn, aScn2
local bConfig := {|e| ADr_expattr( e,;
{0,0,4,31},;
if( iscolor(), "W+/B", "W+/N" ),;
"┌─┐│┘─└│ ",;
"Esc:Exit Tab:Sauv F1:Aide";
);
}
cls
aScn = ADbox( nT, nL, nB, nR )
aScn2 = ADmessage( { "This changes the default attributes of the expanded Get" },;
22,, .f., .f. )
@nT+1, nL+2 say "Short String" adget cShort
@nT+2, nL+2 say "Long String " adget cLong picture "@S24"
ADread( getlist, bConfig )
ADrestscn( aScn2 )
ADrestscn( aScn )
setcolor( cColor )
return nil